﻿using System.Text;
namespace Server
{
    /// <summary>
    /// Constants values.
    /// </summary>
    public static class Constants
    {
        /// <summary>
        /// <see cref="P:Server.ServerParameters.ConnectionPort" /> default value.
        /// </summary>
        public const int ConnectionPortDefaultValue = 27803;

        /// <summary>
        /// <see cref="P:Server.ServerParameters.ClientVersion" /> default value.
        /// </summary>
        public const string ClientVersionDefaultValue = "0.0";

        /// <summary>
        /// <see cref="P:Server.ServerParameters.UpdateAddress" /> default value.
        /// </summary>
        public const string UpdateAddressDefaultValue = @"https://drive.google.com/uc?export=download&id=0B1518YigCf2KRWRmU1lwaWNWYTA";

        /// <summary>
        /// <see cref="P:Server.ServerParameters.Port" /> default value.
        /// </summary>
        public const int ServerPortDefaultValue = 26224;

        /// <summary>
        /// <see cref="P:Server.ServerParameters.PendingConnectionsQueueLength" /> default value.
        /// </summary>
        public const int PendingConnectionsQueueLengthDefaultValue = 5;

        /// <summary>
        /// <see cref="P:Server.ServerParameters.ServerIdleTime" /> default value.
        /// </summary>
        public const int ServerIdleTimeDefaultValue = 50;

        /// <summary>
        /// <see cref="P:Server.ServerParameters.VerifyConnectionInterval" /> default value.
        /// </summary>
        public const int VerifyConnectionIntervalDefaultValue = 10000;

        /// <summary>
        /// <see cref="P:Server.ServerParameters.ClientTimeout" /> default value.
        /// </summary>
        public const int ClientTimeoutDefaultValue = 15000;

        /// <summary>
        /// <see cref="P:Server.ServerParameters.ClientManagerIdleTime" /> default value.
        /// </summary>
        public const int ClientManagerIdleTimeDefaultValue = 50;

        /// <summary>
        /// <see cref="P:Server.ServerParameters.Encoding" /> default value.
        /// </summary>
        public static Encoding EncodingDefaultValue = Encoding.UTF7;

        /// <summary>
        /// <see cref="P:Server.ConnectionInformations.Address" /> default value.
        /// </summary>
        public const string AddressDefaultValue = "...";
    }
}
